<!DOCTYPE html>
<html lang="en">
    
<head th:include="certificateWeb/headFoot :: headerCss">
</head>
<link rel="stylesheet" href="/css/certificateWeb/workNews/workNews.css">
<body id="body">
<div th:include="certificateWeb/headFoot :: header"></div>
<main id="main">
    <section class="sec_1">
        <div class="div_1">
            <ul>
                <li class="this"><a href="/certificate/my">个人信息</a></li>
                <li><a href="/certificate/isResume">我的简历</a></li>
                <!-- <li><a href="/certificate/findApplyExam">报名记录</a></li> -->
                <li><a href="/certificate/infoRecordList">表单提交记录</a></li>
                <li><a href="/certificate/expertRecordList">专家申请记录</a></li>
                <li><a href="/certificate/stationRecordList">考核站点申请记录</a></li>
                <li><a href="/certificate/stationPxRecordList">培训基地申请记录</a></li>
                <li><a href="/certificate/gradeQuery">成绩查询</a></li>
                <li><a href="/certificate/message">消息中心</a></li>
                <li onclick="mock2(this)" data-type="2"><a>幼儿照护初级模拟考试</a></li>
                <li onclick="mock2(this)" data-type="1"><a>幼儿照护中级模拟考试</a></li>
                <li onclick="mock2(this)" data-type="0"><a>幼儿照护高级模拟考试</a></li>
            </ul> 
        </div>
        <div class="div_2">
            <label class="label_title">个人信息</label>
            <label style="float: right; font-size: 14px; margin:20px 25px 0 0">
                <a href="/certificate/editMy">
                    <input type="button" value="编辑资料" style="background: #ff751a;cursor: pointer; border: 0; color: white; width: 95px; height: 30px; border-radius: 3px" />
                </a>
            </label>
            <hr/>
             <div class="dv_1 div_01" style="margin: 20px auto">

             </div>
        </div>
        <div style="clear: both"></div>
    </section>

</main>
<div th:include="certificateWeb/headFoot :: footer"></div>
</body>
<script type="text/javascript" src="/js/mobile.js"></script>
<script>
        $(function () {
            ajaxToken("/jzApi/user/selUserDetail", "GET", {}, function (res) {
                var res = JSON.stringify(res);
                res = res.replace(/null/g, '""');
                res = JSON.parse(res);
                var b='',c='',d='';
                if(res.type==0){
                    b='个人会员'
                }else if(res.type==1){
                    b='机构会员';
                    d='<span ><a href="/certificate/findByOrg?orgId='+res.orgId+'"><input type="button" style="color: white; font-size: 14px; background-color: deepskyblue; border: 0; width: 55px; height: 25px ;border-radius: 10px" value="查看" /></a></span>'
                }else if(res.type==2){
                    b='运营人员'
                }
                 if(res.sex==0){
                    c='未知'
                }else if(res.sex==1){
                    c='男'
                }else if(res.sex==2){
                    c='女'
                }
                if(res.dateOfBirth !='' && res.dateOfBirth!=null){
                    res.dateOfBirth = res.dateOfBirth.substring(0,10)
                }
                var a='  <div style="width:400px;margin:20px auto">' +
                    '                    <span><img src="'+res.headPortrait+'" style="width:147px;height: 206px" /></span>' +
                    '                 </div>' +
                    '                 <div class="" style="margin: auto;">' +
                    '                     <div class="span_1 b18" style="margin-top: 30px">' +
                    '                         <div style="width: 300px;float: left;margin: auto auto auto 80px;height: 35px">' +
                    '                             <span class="title_1">用户名：</span>' +
                    '                             <p class="title_2" >'+res.username+'</p>' +
                    '                          </div>' +
                    '                         <div style="float: left; width: 400px;height: 35px">' +
                    '                             <span class="title_1">真实姓名：</span>' +
                    '                             <p class="title_2">'+res.name+'</p>' +
                    '                         </div>' +
                    '                     </div>' +
                    '                     <div class="span_1 b18">' +
                    '                         <div style="width: 300px;float: left;margin: auto auto auto 80px;height: 35px">' +
                    '                             <span class="title_1">会员类型：</span>' +
                    '                             <p class="title_2">'+b+'</p>' +
                    '                         </div>' +
                    '                         <div style="float: left; width: 400px;height: 35px">' +
                    '                             <span class="title_1">所属机构：</span>' +
                    '                             <p class="title_2">'+res.orgName+'</p>&nbsp;&nbsp;&nbsp;&nbsp;' + d+
                    '                         </div>' +
                    '                     </div>' +
                    '                     <div class="span_1 b18">' +
                    '                         <div style="width: 300px;float: left;margin: auto auto auto 80px;height: 35px">' +
                    '                             <span class="title_1">性别：</span>' +
                    '                             <p class="title_2">'+c+'</p>' +
                    '                         </div>' +
                    '                         <div style="float: left; width: 400px;height: 35px">' +
                    '                             <span class="title_1">出生年月：</span>' +
                    '                             <p class="title_2">'+res.dateOfBirth+'</p>' +
                    '                         </div>' +
                    '                     </div>' +
                    '                     <div class="span_1 b18">' +
                    '                         <div style="width: 300px;float: left;margin: auto auto auto 80px;height: 35px">' +
                    '                             <span class="title_1">民族：</span>' +
                    '                             <p class="title_2">'+res.nation+'</p>' +
                    '                         </div>' +
                    '                         <div style="float: left; width: 400px;height: 35px">' +
                    '                             <span class="title_1">身份证号：</span>' +
                    '                             <p class="title_2">'+res.idNumber+'</p>' +
                    '                         </div>' +
                    '                     </div>' +
                    '                     <div class="span_1 b18">' +
                    '                         <div style="width: 300px;float: left;margin: auto auto auto 80px;height: 35px">' +
                    '                             <span class="title_1">手机号：</span>' +
                    '                             <p class="title_2">'+res.mobile+'</p>' +
                    '                         </div>' +
                    '                         <div style="float: left; width: 400px;height: 35px">' +
                    '                             <span class="title_1">学历：</span>' +
                    '                             <p class="title_2">'+res.education+'</p>' +
                    '                         </div>' +
                    '                     </div>' +
                    '                     <div class="span_1 b18">' +
                    '                         <div style="width: 300px;float: left;margin: auto auto auto 80px;height: 35px">' +
                    '                             <span class="title_1">专业：</span>' +
                    '                             <p class="title_2">'+res.major+'</p>' +
                    '                         </div>' +
                    '                         <div style="float: left; width: 400px;height: 35px">' +
                    '                             <span class="title_1">政治面貌：</span>' +
                    '                             <p class="title_2" >'+res.politicalAffiliation+'</p>' +
                    '                         </div>' +
                    '                     </div>' +
                    '                     <div class="span_1 b18">' +
                    '                         <div style="width: 300px;float: left;margin: auto auto auto 80px;height: 35px">' +
                    '                             <span class="title_1">职务职称：</span>' +
                    '                             <p class="title_2">'+res.officialCapacity+'</p>' +
                    '                         </div>' +
                    '                         <div style="float: left; width: 400px;height: 35px">' +
                    '                             <span class="title_1">QQ：</span>' +
                    '                             <p class="title_2">'+res.qq+'</p>' +
                    '                         </div>' +
                    '                     </div>' +
                    '                     <div class="span_1 b18">' +
                    '                         <div style="width: 300px;float: left;margin: auto auto auto 80px;height: 35px">' +
                    '                             <span class="title_1">e-mail：</span>' +
                    '                             <p class="title_2">'+res.email+'</p>' +
                    '                         </div>' +
                    '                         <div style="float: left; width: 400px;height: 35px">' +
                    '                             <span class="title_1">现居省市区：</span>' +
                    '                             <p class="title_2">'+res.province+'</p>' +
                    '                             <p class="title_2">'+res.city+'</p>' +
                    '                             <p class="title_2">'+res.district+'</p>' +
                    '                         </div>' +
                    '                     </div>' +
                    '                     <div class="span_1 b18">' +
                    '                         <div style="float: left; width: 400px;margin: auto auto auto 80px;height: 35px">' +
                    '                             <span class="title_1">现居详细地址：</span>' +
                    '                             <p class="title_2">'+res.liveAddress+'</p>' +
                    '                         </div>' +
                    '                     </div>' +
                    '                     <div class="span_1 b18">' +
                    '                         <div style="width: 660px;float: left;margin: auto auto 220px 80px;">' +
                    '                             <span class="title_1">学习、工作经历：</span>' +
                    '                             <p class="title_2">'+res.experience+'</p>' +
                    '                         </div>' +
                    '                     </div>' +
                    '                 </div>';
                $(".div_01").html(a)
            })
        })

</script>
</html>